package com.uzai.console.vo.user.wxworkuser;

import com.uzai.console.common.utils.DateUtil;
import com.uzai.console.common.utils.Tools;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * @Auther: liuqi
 * @Date: 2021/8/10 14:58
 * @Description:
 */
@ApiModel("返回企业微信用户最小和最大创建时间对象")
public class WxworkMinMaxCreateTimeVo implements Serializable {

    private static final long serialVersionUID = -2877437408117427582L;

    @ApiModelProperty("最小创建时间")
    private Integer minCreateTime;

    @ApiModelProperty("最大创建时间")
    private Integer maxCreateTime;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getMinCreateTime() {
        if(Tools.getInteger(minCreateTime) == 0){
            minCreateTime = 1483200000;
        }
        return minCreateTime;
    }

    public void setMinCreateTime(Integer minCreateTime) {
        this.minCreateTime = minCreateTime;
    }

    public Integer getMaxCreateTime() {
        if(Tools.getInteger(maxCreateTime) == 0){
            maxCreateTime = DateUtil.getNowTime();
        }
        return maxCreateTime;
    }

    public void setMaxCreateTime(Integer maxCreateTime) {
        this.maxCreateTime = maxCreateTime;
    }
}
